Repository navigation
refactor(create-void): delegate scaffolding to void init - #894
yuikisaito wants to merge 21 commits into
Conversation
59f8386 to
4325273
Compare
|
While implementing #888, I noticed some overlap with
Would you prefer to include this cleanup in this PR, or keep the current scope? |
|
We can clean it up. Ideally |
04b4a09 to
1d59fae
Compare
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1d59fae2b3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
void init
|
Thanks! There is an sisue when creating a Vite+ starter with |
|
@cpojer Thanks for catching that! I'll push a fix later this evening (JST). |
…Engines.packageManager
cpojer
left a comment
There was a problem hiding this comment.
There are a few more issues:
vp create voidfinishes successfully, but the implicit--no-installskips migration generation, making the qlite starter’s home page returns an error.vp dlxandvp execboth setVP_USER_AGENTbut neither run avp installthatvp createdoes.- If an existing project already has
devEngines.packageManagerwith npm,void initwill overwrite it to pnpm while keeping npm's version which breaks package manager commands.
Summary
Fixes an issue where running
create-voidinside an existing pnpm monorepo unconditionally created a nestedpnpm-workspace.yamlin the target subdirectory, causingpnpm installto treat the subdirectory as an isolated workspace root.When
pnpmis detected,create-voidnow locates the enclosing workspace root and merges Void's requiredallowBuildsentries into the rootpnpm-workspace.yamlwhile preserving existing workspace settings, comments, and build approvals.Remaining Tasks
allowBuildsinto rootpnpm-workspace.yaml--no-installflag to skip running local package installationcreate-voidtemporarily executes the same version ofvoid initvia dlx to delegate scaffolding.allowBuildsupdates intovoid init(already implemented on thevoid initside).create-void --no-installtovoid initto skip project dependency installation.Related Issues
Fixes #888